#include "test_utils.h"

std::vector<uint8_t> TestUtils::generate_random_array(size_t length)
{
    // 创建随机数生成器
    std::random_device rd; 
    std::mt19937 gen(rd()); 
    std::uniform_int_distribution<uint8_t> dis(0, 255); 


    std::vector<uint8_t> random_array;
    random_array.reserve(length); 

    for (size_t i = 0; i < length; ++i) {
        random_array.push_back(dis(gen)); 
    }

    return random_array;
}